package com.autodesk.akn.emr.web.entity;

import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author bigdata
 */
public class EMRDescription extends EMR{
    private String dnsName;
    private int instanceNumber;
    private String masterType;
    private String slaveType;
    private int numberOfSteps;
    private String hadoopVersion;
    private String amiVersion;
    private List<StepDescription> steps;

    public EMRDescription(){
        this.steps = new ArrayList<StepDescription>();
    }
    
    public String getDnsName() {
        return dnsName;
    }

    public void setDnsName(String dnsName) {
        this.dnsName = dnsName;
    }

    public int getInstanceNumber() {
        return instanceNumber;
    }

    public void setInstanceNumber(int instanceNumber) {
        this.instanceNumber = instanceNumber;
    }

    public String getMasterType() {
        return masterType;
    }

    public void setMasterType(String masterType) {
        this.masterType = masterType;
    }

    public String getSlaveType() {
        return slaveType;
    }

    public void setSlaveType(String slaveType) {
        this.slaveType = slaveType;
    }

    public int getNumberOfSteps() {
        return numberOfSteps;
    }

    public void setNumberOfSteps(int numberOfSteps) {
        this.numberOfSteps = numberOfSteps;
    }

    public String getHadoopVersion() {
        return hadoopVersion;
    }

    public void setHadoopVersion(String hadoopVersion) {
        this.hadoopVersion = hadoopVersion;
    }

    public String getAmiVersion() {
        return amiVersion;
    }

    public void setAmiVersion(String amiVersion) {
        this.amiVersion = amiVersion;
    }

    public List<StepDescription> getSteps() {
        return steps;
    }

    public void setSteps(List<StepDescription> steps) {
        this.steps = steps;
    }
    
    public void addSteps(StepDescription stepDescription){
        this.steps.add(stepDescription);
    }
}
